package com.edisoncgh.service;

import com.edisoncgh.pojo.Loan;

import java.util.List;

public interface LoanService {
    /**
     * 增
     * @param loan 目标实体
     * @return 成功与否
     */
    boolean addLoan(Loan loan);

    /**
     * 查全部
     * @return 所有对象组成的列表
     */
    List<Loan>findAllLoan();

    /**
     * 删除一本书
     * @param loanNo,ISBN 学号loanNo,书的ISBN
     * @return 成功与否
     */
    boolean deleteLoan(Integer loanNo, String ISBN);

}
